package com.example.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MyTask {

    @Scheduled(cron = "* 0/6 * * * ?")
    public void test1() {
        log.info("定时任务执行了");
    }
}
